cmake_minimum_required(VERSION 3.20)
project(bjut_cpp_2)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_PREFIX_PATH "D:/qt/6.1.3/mingw81_64")
find_package(Qt6 COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED)

include_directories(D:\\sql\\mysql-8.0.25-winx64\\include)
link_directories(D:\\sql\\mysql-8.0.25-winx64\\lib)
link_libraries(libmysql)


add_executable(bjut_cpp_2 main.cpp)
target_link_libraries(bjut_cpp_2 libmysql)
target_link_libraries(bjut_cpp_2
        ${OpenCV_LIBS}
        Qt::Core
        Qt::Gui
        Qt::Widgets)#
